<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:pe="http://primefaces.org/ui/extensions"
                template="/WEB-INF/templates/main-layout.xhtml">

    <ui:define name="mainContent">
        <pe:importEnum type="md.mru.frontend.utils.MainContentTypes" var="contentType"/>

        <p:outputPanel id="main_content" layout="block">

            <pe:switch value="#{mainContentHandler.currentAccessedContent}">

                <pe:case id="folder_details_content" value="#{contentType.FOLDER_DETAILS_CONTENT}">
                    <ui:include src="folder/folder-details-content.xhtml" />
                </pe:case>

                <pe:case id="events_content" value="#{contentType.EVENTS_CONTENT}">
                    <ui:include src="events/list-events.xhtml"/>
                </pe:case>

                <pe:case id="folders_content" value="#{contentType.FOLDERS_CONTENT}">
                    <ui:include src="utils/list-folders.xhtml" />
                </pe:case>

                <pe:case id="common_order_content" value="#{contentType.COMMON_ORDER_CONTENT}">
                    COMMON_ORDER_CONTENT
                    <!--<ui:include src="utils/common-order.xhtml" />-->
                </pe:case>

                <pe:case id="orders_templates_content" value="#{contentType.ORDERS_TEMPLATES_CONTENT}">
                    <ui:include src="utils/order-templates.xhtml" />
                </pe:case>

                <pe:case id="system_tags_content" value="#{contentType.SYSTEM_TAGS_CONTENT}">
                    <ui:include src="administration/list-system-tags.xhtml" />
                </pe:case>

                <pe:case id="users_content" value="#{contentType.USERS_CONTENT}">
                    <ui:include src="administration/list-users.xhtml" />
                </pe:case>

                <pe:case id="groups_content" value="#{contentType.GROUPS_CONTENT}">
                    <ui:include src="administration/list-groups.xhtml" />
                </pe:case>

            </pe:switch>


        </p:outputPanel>

    </ui:define>
</ui:composition>
